package model

import (
	"gorm.io/gorm"
	"time"
)

type Essoys struct {
	Id        uint64         `gorm:"column:id;type:bigint UNSIGNED;primaryKey;not null;" json:"id"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
	Title     string         `gorm:"column:title;type:varchar(255);comment:标题;not null;" json:"title"`   // 标题
	Image     string         `gorm:"column:image;type:varchar(255);comment:图片;not null;" json:"image"`   // 图片
	Author    string         `gorm:"column:author;type:varchar(255);comment:作者;not null;" json:"author"` // 作者
}
